package com.park.web.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.park.web.base.baseOperation.BaseService;
import com.park.web.dao.pbaOwnerVehicleInfoMapper;
import com.park.web.model.domain.pbaOwnerVehicleInfo;
import com.park.web.model.dto.pbaOwnerVehicleInfoDto;
import com.park.web.model.vo.pbaOwnerVehicleInfoVo;
import com.park.web.service.pbaOwnerVehicleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class pbaOwnerVehicleInfoServiceImpl extends BaseService<pbaOwnerVehicleInfo> implements pbaOwnerVehicleInfoService {

    @Autowired
    pbaOwnerVehicleInfoMapper ipbaOwnerVehicleInfoMapper;

    public PageInfo<pbaOwnerVehicleInfoVo> queryWithPage(pbaOwnerVehicleInfoDto entity) {
        PageHelper.startPage(entity.getPage(), entity.getPageSize());
        var actionList = ipbaOwnerVehicleInfoMapper.queryWithPage(entity);
        return new PageInfo<>(actionList);
    }
}